package com.gxuwz.attendance.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Course implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String courseNo;
	private String courseName;
	private String year;
	private String term;
	private Integer hour;
	
	private Set<Teacher> teachers = new HashSet<Teacher>();
	
	public Set<Teacher> getTeachers() {
		return teachers;
	}
	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}
	public String getCourseNo() {
		return courseNo;
	}
	public void setCourseNo(String courseNo) {
		this.courseNo = courseNo;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getTerm() {
		return term;
	}
	public void setTerm(String term) {
		this.term = term;
	}
	public Integer getHour() {
		return hour;
	}
	public void setHour(Integer hour) {
		this.hour = hour;
	}
	
	public Course() {
		super();
	}
	public Course(String courseNo, String courseName, String year, String term, Integer hour, Set<Teacher> teachers) {
		super();
		this.courseNo = courseNo;
		this.courseName = courseName;
		this.year = year;
		this.term = term;
		this.hour = hour;
		this.teachers = teachers;
	}
	@Override
	public String toString() {
		return "Course [courseNo=" + courseNo + ", courseName=" + courseName + ", year=" + year + ", term=" + term
				+ ", hour=" + hour + ", teachers=" + teachers + "]";
	}
	
	
}
